package cn.wolfcode.luowowo.service;

import cn.wolfcode.luowowo.domain.Destination;
import cn.wolfcode.luowowo.domain.Region;
import cn.wolfcode.luowowo.query.DestinationQuery;
import org.springframework.data.domain.Page;
import sun.security.krb5.internal.crypto.Des;

import java.util.List;

public interface IDestinationService {
    void save(Destination destination);
    void delete(String id);
    void update(Destination destination);
    Destination get(String id);
    List<Destination> list();

    List<Destination> getDestByRegionId(String rid);

    //分页查询
    Page<Destination> query(DestinationQuery qo);

    List<Destination> getToasts(String parentId);

    List<Destination> queryByRegionIdForApi(String regionId);

    Destination findByName(String name);
}
